package com.hrm.domain.system;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author: 林海湾Sea
 * @Date :  2021/11/26 10:26
 * @Decription: 权限实体类
 */

@Entity
@Table(name = "pe_permission")
@Setter
@Getter
@NoArgsConstructor
public class Permission implements Serializable {
    private static final long serialVersionUID = -4990810027542971546L;

    /**
     * 权限id--主键
     */
    @Id
    private String id;
    /**
     * 权限名称
     */
    private String name;
    /**
     * 权限类型：1：菜单，2：功能，3：API
     */
    private Integer type;
    /**
     * 权限编码
     */
    private String code;
    /**
     * 权限描述
     */
    private String description;
    /**
     * 说明父权限的id
     */
    private String pid;
    /**
     * 可见状态
     */
    private String enVisible;

    public Permission(String name, Integer type, String code, String description) {
        this.name = name;
        this.type = type;
        this.code = code;
        this.description = description;
    }

}
